package spring.cloud.tasks.executor.listener.report;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

@Slf4j
@Setter
@Getter
public final class TaskItemExecuteInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private int taskItemIndex;

    private String message;

    private Long lastBeginTime;

    private Long lastCompleteTime;

    private Long nextFireTime;
    /**
     * 作业分片运行日志
     */
    private String taskItemLog;

    public TaskItemExecuteInfo(int taskItemIndex) {
        this.taskItemIndex = taskItemIndex;
    }

    public TaskItemExecuteInfo(int taskItemIndex, Long lastBeginTime) {
        this.taskItemIndex = taskItemIndex;
        this.lastBeginTime = lastBeginTime;
    }


}
